<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
  <head>
    <title>
  <?php include_slot('title', 'Fouleg.com') ?>
</title>
    <link rel="shortcut icon" src="/favicon.ico" />
    <link rel="alternate" type="application/atom+xml" title="Dernières vidéos"
  	href="<?php echo url_for('download', array('sf_format' => 'atom'), true) ?>" />
	
  <?php include_stylesheets() ?>
  <?php include_javascripts() ?>
      
  </head>
  <body>

	<table id="tmenu">
  		<tr><td>
		<div id="rubrique">
			<ul id="menu">
				<li>
	    			<a href="<?php echo url_for('@download_search')?>">Accueil</a>
	   			</li>
	  		</ul>
		</div>
  	
		<div id="rubrique">
  			<ul id="menu">
  				<li>
        			<a href="<?php echo url_for('@download')?>">Liens</a>
               			 <ul>
		                    <table>
		                	<tr>
			                <td><a href="<?php echo url_for('@download_day')?>">Liens du jour</a></td>
			                </tr>
			                <tr>
			                <td><a href="<?php echo url_for('@download_week')?>">Liens de la semaine</a></td>
			                </tr>
			                <tr>
			                <td><a href="<?php echo url_for('@download_month')?>">Liens du mois</a></td>
			                </tr>
			                
			                </table>
               			</ul>
        		</li>
 		 	</ul>
  		</div>
  
		<div id="rubrique">
  			<ul id="menu">
				<li>
        			<a href="#">Communautés</a>
        			<ul>
		                    <table>
		                	<tr>
			                <td><a href="<?php echo url_for('@download_day')?>">Chat</a></td>
			                </tr>
			                <tr>
			                <td><a href="<?php echo url_for('@download_week')?>">forum</a></td>
			                </tr>
			                
			                
			                </table>
               			</ul>
        		</li>
	   		</ul>
	  	</div>
	  
	  	<div id="rubrique">
			<ul id="menu">
	  			<li>	
	  				<a href="#">Top News</a>
				</li>
			</ul>
		</div>
	 
	  	<div id="rubrique">
			<ul id="menu">
	   			
	   				<?php 
	   				if($sf_user->isAuthenticated())
	   					{
	   					echo "<li>
	   					<a href=".url_for('@sf_apply_register').">Mon Compte</a>
	   					<ul>
	   					<table>
	   						<tr><td><a href=".url_for('@download_new').">Poster une vidéo</a></td></tr>
	   						<tr><td><a href=".url_for('@download_search').">Ajouter un lien</a></td></tr>
	   						<tr><td><a href=".url_for('@linkmanage').">Gérer mes liens</a></td></tr>
	   					</table>
	   					</ul>
	   					</li>";
	   					}
	   				else 
	   					{
	   					echo "<li><a href=".url_for('@sf_apply_register').">Inscription</a></li>";
	   					}?>		
	  				
	  			
			</ul>
	  	</div>
	  
	  	<div id="rubrique2">
	   		<ul id="menu">
	  			<li>
	  			<?php 
	  				if($sf_user->isAuthenticated())
	   				{
	   					echo "<a href=".url_for('@sf_apply_register').">".$sf_user->getGuardUser()->getEmail_address()."</a>";
	   					echo"
	   					<ul>
		                    <table>
		                	<tr>
			                <td><a href=".url_for('@sf_apply_register').">Mes Préferences</a></td>
			                </tr>	
			                <tr>
			                <td><a href=".url_for('@sf_guard_signout').">Déconnexion</a></td>
			                </tr>		                
			                </table>
               			</ul>";
	   				}
	   				else 
	   				{
	   					echo "<a href=".url_for('@sf_guard_signin').">Connexion</a>";
	   				}
	   			?>
	  				
	  			</li>
			</ul>
		</div>
	  
	  
	  </td></tr>
	</table>
  
 	<div id="container">
 	
 	<?php include_component('sfApply', 'login'); ?>  
 	
		<div id="content">
        	<?php if ($sf_user->hasFlash('notice')): ?>
          	<div class="flash_notice">
            	<?php echo $sf_user->getFlash('notice') ?>
         	</div>
        	<?php endif; ?>
 
       		<?php if ($sf_user->hasFlash('error')): ?>
          	<div class="flash_error">
            	<?php echo $sf_user->getFlash('error') ?>
          	</div>
        	<?php endif; ?>

        	<div class="content">
          		<?php echo $sf_content ?>
        	</div>
		</div>

	</div>
	
  
  
  


 